package demo.vo
{
	import flash.events.EventDispatcher;
	
	import map.MapAssetVO;

	public class SceneVO extends EventDispatcher
	{
		private var _mapName:String;
		private var _mapDescription:String;
		private var _mapBackgroundPath:String;
		private var _mapRow:int=0;
		private var _mapCols:int=0;
		private var _cellSize:Number;
		private var _mapGridList:Array=[];
		private var _roadArray:Array=[];
		private var _assetLibPath:Vector.<Object>=new Vector.<Object>();	
		private var _assetArray:Vector.<MapAssetVO>=new Vector.<MapAssetVO>();
		
		public function SceneVO()
		{
		}
		
		public function get mapName():String
		{
			return _mapName;
		}
		
		public function set mapName(value:String):void
		{
			_mapName = value;
		}
		
		public function get mapDescription():String
		{
			return _mapDescription;
		}
		
		public function set mapDescription(value:String):void
		{
			_mapDescription = value;
		}
		
		public function get mapBackgroundPath():String
		{
			return _mapBackgroundPath;
		}
		
		public function set mapBackgroundPath(value:String):void
		{
			if(_mapBackgroundPath==value) return;
			_mapBackgroundPath = value;
		}

		/**
		 *地图上所有物件列表
		 */		
		public function get assetArray():Vector.<MapAssetVO>
		{
			return _assetArray;
		}
		
		/**
		 *地图上所有物件列表
		 */	
		public function set assetArray(value:Vector.<MapAssetVO>):void
		{
			_assetArray = value;
		}
		
		/**
		 *地图格子对象列表
		 */		
		public function get mapGridList():Array
		{
			return _mapGridList;
		}
		
		/**
		 *地图格子对象列表
		 */
		public function set mapGridList(value:Array):void
		{
			_mapGridList = value;
		}

		public function get mapRow():int
		{
			return _mapRow;
		}

		public function set mapRow(value:int):void
		{
			_mapRow = value;
		}

		public function get mapCols():int
		{
			return _mapCols;
		}

		public function set mapCols(value:int):void
		{
			_mapCols = value;
		}

		public function get cellSize():Number
		{
			return _cellSize;
		}

		public function set cellSize(value:Number):void
		{
			_cellSize = value;
		}

		public function get roadArray():Array
		{
			return _roadArray;
		}
		
		public function set roadArray(value:Array):void
		{
			_roadArray=value;
		}

		/**
		 *地图资源库Xml配置路径
		 */		
		public function get assetLibPath():Vector.<Object>
		{
			return _assetLibPath;
		}

		/**
		 *地图资源库Xml配置路径
		 */
		public function set assetLibPath(value:Vector.<Object>):void
		{
			_assetLibPath = value;
		}
	}
}